import { InMemoryDbService } from 'angular-in-memory-web-api';

export class InMemoryDataService implements InMemoryDbService {
  createDb() {
    const books = [
      { id: 11, name: 'python' },
      { id: 12, name: 'kotlin' },
      { id: 13, name: 'swift' },
      { id: 14, name: 'object c' },
      { id: 15, name: 'java' }
    ];
    return {books};
  }
}